package com.example.springbootdemoproduct.controller;

import com.example.springbootdemoentity.entity.Product;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProductController {


    @RequestMapping(value = "getProduct")
    public String getProduct() {
        Product product = new Product("李大狼",25,"红旗河沟","11326220.@qq.com");
        return product.toString();
    }

    @RequestMapping(value = "/home")
    public String home() {

        System.out.println("123");
        return "123";
    }
}
